The parents locked her daughter up for the weekend
She locked her jewels in the safe
English Idioms Dictionary
to be assured of success The candidate has already locked up the nomination to be a candidate for president in the next election.
Microsoft Computer Dictionary
n. A condition in which processing appears to be completely suspended and in which the program in control of the system will accept no input. See also crash1.